import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect:'/home',
      name:'home1',
      component:()=>import('../views/Main.vue'),
      children:[]
      // children:[
      //   {
      //     path:'/',
      //     name:'home',
      //     component:()=>import('../views/home/Home.vue')

      //   },
      //   {
      //     path:'/user',
      //     name:'user',
      //     component:()=>import('../views/user/User.vue')
      //   },
      //   {
      //     path:'/page1',
      //     name:'page1',
      //     component:()=>import('../views/page/Page1.vue')
      //   },
      //   {
      //     path:'/page2',
      //     name:'page2',
      //     component:()=>import('../views/page/Page2.vue')
      //   }
      // ]
    },
    {
      path:'/login',
      name:'login',
      component:()=>import("../views/Login.vue")
    }
  ]
})

export default router
